package com.rppowell.pixie.models;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;


public class Sprite extends java.awt.image.BufferedImage {

	public Sprite(int width, int height, int colors) {
		super(width, height, colors);
	}

	public void setImage(Image i) {
		Graphics g = this.getGraphics();
		g.drawImage(i,  0,  0,  null);
	}
        
        public void fillRect(Rectangle r, Color c) {
            Graphics g = this.getGraphics();
            g.setColor(c);
            g.fillRect(0, 0, getWidth(), getHeight());
        }
}
